package com.ruoyi.quartz.task;

import com.ruoyi.kafka.ProduceData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Component("hongLouTask")
public class HongLouTask {

    @Autowired
    private ProduceData produceData;

    public void produceData(Integer pageNum){
        System.out.println("HongLouTask pageNum=" + pageNum);
        produceData.getContentByPage(pageNum);
    }
}
